<div>
	<div style="float: left;width: 50%">${pageContext.request.remoteUser}</div>
	<div style="float: left;width: 50%;text-align: right;">${requestScope['dateTimeServer']}</div>
</div>
<script>$('.date').datepicker({
			changeMonth: true,
			changeYear: true,
			showOn: 'button',
			buttonImage: '/javacenter/images/icon-calendar.gif',
			dateFormat: 'dd/mm/yy',
			buttonImageOnly: true
		});</script>
<script>$('input:[type=text]').css("border","1px solid #c0c0c0");</script>
<script>

//$("input.numeric").numeric();

$('label')
.css("height","20px")
.css("font-size","14px")

$('input[type=text],select')
.css("height","20px")
.css("font-size","14px")
.focus(function(){$(this).css("border","1px solid #D1AC63")})
.blur(function(){$(this).css("border","1px solid #c0c0c0")})
.css("border","1px solid #c0c0c0")

$(".tableForm").each(function(i,obj){
	var countTd = 0;
	$("tr",obj).each(function(j,obj2){
		var len = $("td",obj2).length;
		if(countTd<len){
			countTd = len;
		}
	})
	$("tr",obj).each(function(j,obj2){
		var len = $("td",obj2).length;
		if(countTd>len){
			$("td:last",obj2).attr("colSpan",(countTd-len)+1);
		}
	})
	
})

$(".displayTagTable tr")
.attr("selected",false)
.css("height","25px")
.mouseover(function(){
	if($(this).attr("selected"))
		$("td",this).css("background","#F0F0F0")
})
.mouseout(function(){
	if($(this).attr("selected"))
		$("td",this).css("background","")
})
.click(function(){
	var firstTR = $(".displayTagTable tr:first").get(0);
	if(this != firstTR){
		$("tr[selected=true]",this.parentNode).css("background","").attr("selected",false);
		$(this).css("background","#C0C0C0").attr("selected",true)
		$("#id").val($("td:first",this).text())
	}
})

$(".displayTagTable td").css("text-align","center")

$(".inputBoolean").click(function(){
	$("#" + $(this).attr("nameHidden")).val(this.checked);
	
})

$("span.alone").styledButton({'orientation' : 'alone'});

$(".pagelinks a,.sortable a").each(function (i,obj){
	var start =  obj.href.indexOf("?");
	obj.href = 'http://${sf.completePath}' + obj.href.substring(start,obj.href.length);	
})

$(".mestre")
.css("margin","2px")
.css("padding","2px")
.css("width","100%")
.attr("cellspacing","3")
.show()

$(".detalhe")
.css("border","1px solid #C0C0C0")
.css("margin","2px")
.css("padding","2px")
.css("width","100%")

</script>

<script>$('[readonly=readonly]').css("background","#F0F0F0");</script>
